import { Component } from '@angular/core';
import { IonicPage, ViewController } from 'ionic-angular';

import { CustomerService } from '../../providers/providers';

@IonicPage()
@Component({
  selector: 'page-reduction-ratio-popover',
  templateUrl: 'reduction-ratio-popover.html',
})
export class ReductionRatioPopoverPage {
	private items: any;
	
  constructor(public viewCtrl: ViewController,public customerService: CustomerService) {
  }

  ionViewDidLoad() {
    this.customerService.queryDeclineRatio()
    .subscribe((res) => {
      if(res.success) {
        this.items = res.data;
      }
    });
  }

  clickItem(item) {
    this.viewCtrl.dismiss(item);
  }

}
